#include "main.h"
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>

typedef int int32_t;
int32_t global_var = 5;
int32_t add5(int arg)
{
    return arg + 5;
}

int get2()
{
    return 2;
}
int add6(int v)
{
    return v + 6;
}
void hi(char * arg)
{
    int a = 2;
    a += 3;
    char c = arg[1] + add5(a);
    char d = add6(a);


    if (arg)
    {
        return;
    }
    return;
    if (c)
    {
        char i = 2;
    }
    if (0)
    {
       char tc = 1 + 2;
       tc++;
    }

}

void unused_function()
{
    char ccc = 5;
    global_var = 3;
}

int main(int argc, char ** args)
{
    char * str = "Hello, world!";
    global_var = 2;
    int c = get2();
    add5(get2());
    add5(global_var);
    int b = c + 2;
    hi(str);
    hello();
    printf("%s %d %d\n", str, atoi("5"), errno);
    return 0;
}
